//在index的js中引入  引入对象 叫react  ReactDOM
import React from 'react'
import ReactDOM from 'react-dom'
import axios from 'axios'
import { Provider, connect } from 'react-redux';
import store from '@/redux/reducer.jsx'
import {mapStateToProps,mapDispatchToProps} from '@/redux/action.js'
import appscss from '@/css/app.scss'
import Cart from '@/components/Cart'
import Good from '@/components/Good'


class App extends React.Component{
		render(){
			return(
				<div>
					<h3>React购物车</h3>
					<p>商品信息</p>
					<Good/>
					<h3>购物车信息</h3>
					<Cart/>
				</div>
			
			)
		}
}
App = connect(mapStateToProps,mapDispatchToProps)(App)
ReactDOM.render(
	<Provider store={store}>
		<App/>
	</Provider>
,document.getElementById('app'));